<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="err.jsp"%>
    <jsp:include page="lock.jsp"></jsp:include>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<!-- 跳转 -->
<script type="text/javascript">  
    onload=function(){  
        setInterval(go, 1000);  
    };  
    var x=2; //利用了全局变量来执行  
    function go(){  
   		 x--;  
        if(x>0){  
        	//每次设置的x的值都不一样了。  
        	document.getElementById("sp").innerHTML=x;  
        }else{  
        	top.location.href="login.jsp";  
        }  
    }  
</script> 
<%
	request.setCharacterEncoding("UTF-8");
	if(request.getAttribute("message") != null){
		out.print(request.getAttribute("message"));
	}

%>
<span><span id="sp">2</span>后将为您自动跳转，若浏览器不自动跳转请<a href="login.jsp"target="_top">点击此处</a></span>
</body>
</html>